package com.yycx.module.bus.provider.handler.haiying.process;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.RuntimeService;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.flowable.engine.impl.persistence.entity.ExecutionEntity;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 推送订单
 *
 * @author zyf
 */
@Slf4j
@Component("orderSendDelegate")
public class OrderSendDelegate implements JavaDelegate {


    @Resource
    private RuntimeService runtimeService;

    @Override
    public void execute(DelegateExecution delegateExecution) {
        ExecutionEntity executionEntity = (ExecutionEntity) delegateExecution;
        String processDefinitionKey = executionEntity.getProcessDefinitionKey();
        String executionId = executionEntity.getId();
        String processInstanceId = executionEntity.getProcessInstanceId();
    }


}
